import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/juejin'
    },
    {
      path: '/juejin',
      component: () => import('@/components/juejin'),
      redirect: '/tuijian',
      children: [
        {
          path: '/tuijian',
          component: () => import('@/components/tuijian')
        },
        {
          path: '/houduan',
          component: () => import('@/components/houduan')
        },
        {
          path: '/qianduan',
          component: () => import('@/components/qianduan')
        },
      ]
    }
  ]
})
